<template>
  <div class="infoshow">
    <el-row type="flex" class="row-bg" justity="center">
      <el-col>
        <div class="userinfo">
          <div class="user-item">
            <i class="fa fa-user"></i>
            <span>{{user.name}}</span>
          </div>
          <div class="user-item">
            <i class="fa fa-cog"></i>
            <span>{{user.identity == 'manager' ? '管理员' : '普通员工'}}</span>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "infoshow",
  computed: {
    user() {
      return this.$store.getters.user;
    }
  }
};
</script>

<style scoped>
.infoshow {
  width: 100%;
  height: 682px;
  box-sizing: border-box;
  /* padding: 16px; */
}
.row-bg {
  width: 100%;
  height: 100%;
}
.user {
  text-align: center;
  position: relative;
  top: 30%;
}
.user span {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
}
.userinfo {
  height: 100%;
  background-color: #eee;
  padding: 30px 30px
}
.user-item {
  position: relative;
  top: 30%;
  left: 20%;
  padding: 26px;
  font-size: 28px;
  color: #333;
}
</style>